"""互动相关的数据模型"""
from pydantic import BaseModel


class LikeRequest(BaseModel):
    """点赞请求模型"""
    videoId: int


class FavoriteRequest(BaseModel):
    """收藏请求模型"""
    videoId: int


class CommentRequest(BaseModel):
    """评论请求模型"""
    content: str
    parent_id: int = None


class LikeResponse(BaseModel):
    """点赞响应模型"""
    videoId: int
    likeCount: int
    isLiked: bool


class FavoriteResponse(BaseModel):
    """收藏响应模型"""
    videoId: int
    favoriteCount: int
    isCollected: bool
